#!/bin/bash
for i in rework/*; do
	base=`basename "$i"`
	fn=`echo "$base" |rev | cut -d. -f2-| rev`
	target="$1$fn.m4v"
	ripdvd -i "$i" -o "$target" -t 1 -a 1 && rm -f "$i"
done
